Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Fix "exec: command: not found" #11504

Closed
wants to merge 1 commit into from
Closed

Fix "exec: command: not found" #11504

wants to merge 1 commit into from

Conversation

phenonymous
Copy link

@phenonymous phenonymous commented Sep 8, 2018

Description

This fixes docker-compose unable to build because of exec does not find any of the functions defined in scripts/bootstrap-container.
Root problem is that when calling exec it changes shell to that of the command and since the functions are not global functions it fails with the error above.

The solution is to change exec to eval which does the same thing but does not change shell.

Motivation and Context

See above

How Has This Been Tested?

Tested by successfully building the docker-compose containers.

Screenshots (if appropriate):

Types of changes

  • [ x] Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.

@CLAassistant
Copy link

CLAassistant commented Sep 8, 2018

CLA assistant check
All committers have signed the CLA.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants